#pragma once
#include "KEdit.h"
#include <set>

// CEditListCtrl
#define IDC_EDIT 1001

class CEditListCtrl : public CListCtrl
{
	DECLARE_DYNAMIC(CEditListCtrl)

public:
	CEditListCtrl();
	virtual ~CEditListCtrl();


	void ShowEdit(bool bShow, int nRow, int nCol, CRect rcCtrl);
	void AddEditableCol(int nCol);
	bool IsEditableCol(int nCol);

protected:
	afx_msg LRESULT OnEditEnd(WPARAM wParam, LPARAM lParam = FALSE);
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	DECLARE_MESSAGE_MAP()


private:
	int m_nRow;
	int m_nCol;

	CKEdit    m_Edit;
	std::set<int> m_editCols;

	//int m_nText;
	//CString m_defText;
	//CString m_validMask;
	//BOOL m_canDel;

	//int m_nRowHeight;

};


